package com.ssy.system.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ssy.common.utils.PageResult;
import com.ssy.common.utils.Result;
import com.ssy.system.pojo.User;
import com.ssy.system.vo.UserVo;

/**
 * @author ssy
 */
public interface IUserService extends IService<User> {

    PageResult queryAllUserByPage(UserVo userVo);

    Result insertUser(User user);

    Result updateUserById(User user);

    Result deleteUserById(Integer id);

    Result bathDeleteUser(Integer[] ids);

    Result resetUserPwdById(Integer[] ids);

    Result insertRoleUser(Integer userId, Integer[] ids);

    User QueryUserByUserName(String userName);

    int updateUserPwdById(User user);

}
